extends mixins/_layout

block content
    body
        #wrapper
            //- 顶部导航
            include mixins/_header
            +header(navigator, 'index')
            
            #desk
                if JSON.stringify(articles) != '{}'
                    ul#articleList
                        each item in articles
                            li
                                h2.title
                                    span.number
                                    a(href="/article/#{item.articleid}", target='_blank') #{item.title}
                                small.about In <em class='mark cates'>#{item.cates}</em> on <em class='mark date'>#{item.date}</em> by #{item.author}
                                if item.imgid
                                    .summary
                                        .summaryTxt #{item.summary}
                                        .img
                                            img(src="/images/#{item.imgid}")
                                else
                                    .summary #{item.summary}
                                a.read.common_blue(href="/article/#{item.articleid}", target='_blank') 阅读全文
            
                else
                    p.empty <img src='/images/nothing.svg'><br>Nothing?! 先去<a href='/post'>发表文章</a>吧

            include mixins/_footer
            +footer
        script(src="/js/base.js")